package com.ruoyi.finances.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 科目管理对象 tb_subject
 *
 * @author ruoyi
 * @date 2024-11-13
 */
public class TbSubject extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 科目编码 */
    @Excel(name = "科目编码")
    private Long subjectId;

    /** 科目名称 */
    @Excel(name = "科目名称")
    private String subjectName;

    /** 科目类别 */
    @Excel(name = "科目类别")
    private Long typeId;

    /** 科目状态 -1禁用 1启用 */
    @Excel(name = "科目状态 -1禁用 1启用")
    private String subjectStatus;

    /** 辅助核算 */
    @Excel(name = "辅助核算")
    private String accounting;

    /** 余额方向 */
    @Excel(name = "余额方向")
    private String balanceDirection;

    /** 上级科目 */
    @Excel(name = "上级科目")
    private String superiorsSubject;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSubjectId(Long subjectId)
    {
        this.subjectId = subjectId;
    }

    public Long getSubjectId()
    {
        return subjectId;
    }
    public void setSubjectName(String subjectName)
    {
        this.subjectName = subjectName;
    }

    public String getSubjectName()
    {
        return subjectName;
    }
    public void setTypeId(Long typeId)
    {
        this.typeId = typeId;
    }

    public Long getTypeId()
    {
        return typeId;
    }
    public void setSubjectStatus(String subjectStatus)
    {
        this.subjectStatus = subjectStatus;
    }

    public String getSubjectStatus()
    {
        return subjectStatus;
    }
    public void setAccounting(String accounting)
    {
        this.accounting = accounting;
    }

    public String getAccounting()
    {
        return accounting;
    }
    public void setBalanceDirection(String balanceDirection)
    {
        this.balanceDirection = balanceDirection;
    }

    public String getBalanceDirection()
    {
        return balanceDirection;
    }
    public void setSuperiorsSubject(String superiorsSubject)
    {
        this.superiorsSubject = superiorsSubject;
    }

    public String getSuperiorsSubject()
    {
        return superiorsSubject;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("subjectId", getSubjectId())
            .append("subjectName", getSubjectName())
            .append("typeId", getTypeId())
            .append("subjectStatus", getSubjectStatus())
            .append("accounting", getAccounting())
            .append("balanceDirection", getBalanceDirection())
            .append("superiorsSubject", getSuperiorsSubject())
            .toString();
    }
}
